<template>
  <div class="home-pannel">
    <div class="container">
        <!-- 头部标题部分 -->
        <div class="home-head">
            <!-- 主标题，副标题 -->
            <h3>{{title}} <small>{{subTitle}}</small></h3>
            <!-- 右侧内容 -->
            <slot name="right"></slot>
        </div>
        <!-- 主体内容部分 -->
        <slot name="main"></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: ''
    },
    subTitle: {
      type: String,
      default: ''
    }
  }
}
</script>

<style lang="less" scoped>
.home-pannel{
    background-color: #fff;
    width: 100%;
    .home-head{
        padding: 40px 0;
        display: flex;
        h3{
            flex: 1;
            font-size: 32px;
            font-weight: normal;
            color: #333;
            margin-left: 6px;
            height: 35px;
            line-height: 35px;
            small{
                font-size: 16px;
                color: #999;
                margin-left: 20px;
            }
        }

    }

}
</style>
